package cn.edu.qfnu.oj.service;

import cn.edu.qfnu.common.service.BaseService;
import cn.edu.qfnu.oj.entity.LoginLog;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * OnlineJudge of QF_NU
 * Created by LS on 2017/7/18.
 */
public interface LoginLogService extends BaseService<LoginLog, Integer> {
    /**
     * 获取客户端IP地址
     * @param request 请求
     * @return ip地址
     */
    String getIpAddress(HttpServletRequest request);

    /**
     * 保存登录日志
     * @param args 参数
     */
    void saveLog(HttpServletRequest request, String...args);


}
